package com.yy.tankgame;
/**
 * 
 *@author Yun
 *@date 2014-7-2 下午10:14:19
 *@version
 */

import java.awt.*;

public class Wall {
	int x,y,w,h;
	
	TankClient tc;

	/**
	 * @param x
	 * @param y
	 * @param w
	 * @param h
	 * @param tc
	 */
	public Wall(int x, int y, int w, int h, TankClient tc) {
		
		this.x = x;
		this.y = y;
		this.w = w;
		this.h = h;
		this.tc = tc;
	}
	
	public void draw(Graphics g){
		Color c = g.getColor();
		g.setColor(Color.DARK_GRAY);
		g.fillRect(x, y, w, h);
		g.setColor(c);
	}
	
	public Rectangle getRect(){
		return new Rectangle(x, y, w, h);
	}

}
